Page({
  data: {
    canteenList:[
      {
        url:"https://mmbiz.qpic.cn/mmbiz_jpg/gwWrVdXgFlb9ibIdAgxogiaiak7AiaVLXgVia36tJttC0bH55XwFkmgoHSltWtwKF5tkkricEctaTcutzMm5LwAibJ1Qw/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1",
        title:"色香俱全，美滋滋，哈哈"
      },
      {
        url:"https://mmbiz.qpic.cn/mmbiz_jpg/gwWrVdXgFlb9ibIdAgxogiaiak7AiaVLXgViaZofZyVGyUH8AgIcw26T9HcnM4r05wweyZNxibgTQljWNEZajSPsjLlw/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1",
        title:"早餐，馒头配稀饭，心情爽一天"
      },
      {
        url:"https://mmbiz.qpic.cn/mmbiz_jpg/gwWrVdXgFlb9ibIdAgxogiaiak7AiaVLXgViaKVgcEDI9756hCxot9Tuesdt2XqHibxJeVwTHzIwOmZrlp79SWw4JRBw/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1",
        title:"炸鸡腿"
      },
      {
        url:"https://mmbiz.qpic.cn/mmbiz_jpg/gwWrVdXgFlYQOJVSqSMV1tdZdwe4wibhZSbGIsD1fexhXpSDLyPkfgwHEGEib3h4kmUbANIGfsPqu6lyBalFhPCg/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1",
        title:"自助餐"
      },
      {
        url:"https://mmbiz.qpic.cn/mmbiz_jpg/gwWrVdXgFlYQOJVSqSMV1tdZdwe4wibhZNlT1pMiaEezxymTPDt5CbHEGrES8QwcPkoVqJVayPyYd8E1fysxfNXA/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1",
        title:"炸鸡饭"
      },
      {
        url:"https://mmbiz.qpic.cn/mmbiz_jpg/gwWrVdXgFlYQOJVSqSMV1tdZdwe4wibhZ3EJiaH87szoSBiaoTj6an0BRoDkbXVpBcZxTqbtibOibM9zR2Oby5Gptnw/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1",
        title:"鸡公煲"
      },
      {
        url:"https://mmbiz.qpic.cn/mmbiz_jpg/gwWrVdXgFlYQOJVSqSMV1tdZdwe4wibhZkxmjhgMOZnhXvMQQUDpibKVURfsnKgZONKkLDN4lPblS5n9mkLX4ia8Q/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1",
        title:"甜点美食"
      },
      {
        url:"https://mmbiz.qpic.cn/mmbiz_jpg/gwWrVdXgFlYQOJVSqSMV1tdZdwe4wibhZhMG0BVoeZSPaNemRWZNRfrPQTml2nNclAlr91Q5laYKaaiaSvZibrgpQ/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1",
        title:"夏天，注意防暑"
      },
      {
        url:"https://mmbiz.qpic.cn/mmbiz_jpg/gwWrVdXgFlYQOJVSqSMV1tdZdwe4wibhZnibKzziamibAdgIaWNI8MCbiaic8fhDT8tlI70yFibibOv9q3Kn8CCmap6gAg/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1",
        title:"啥啥啥菜，没看见过我"
      },
      {
        url:"https://mmbiz.qpic.cn/mmbiz_jpg/gwWrVdXgFla2a2W9XgiaqycuPCg6toRBbuTicmIBLSYlZLyhUMCbOsQKAsR1wtVeYmb4TmUVT5fzojAib1y98TmDw/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1",
        title:"兰州牛肉面，2.5元每碗，部分食堂"
      },
      {
        url:"https://mmbiz.qpic.cn/mmbiz_jpg/gwWrVdXgFla2a2W9XgiaqycuPCg6toRBbbhqiaVuRwAgyxnunhNElBLHAvia3NXdMCUVibp63TxCiaXPicyOoeUFMORg/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1",
        title:"麻辣烫"
      },
      {
        url:"https://mmbiz.qpic.cn/mmbiz_jpg/gwWrVdXgFlb9ibIdAgxogiaiak7AiaVLXgViaoc8mSQ6D6479a8nlKtKNibctEQ09TLuiay43ibSQUxjnP8WvT23aCTr9g/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1",
        title:"自助餐"
      },
      {
        url:"https://mmbiz.qpic.cn/mmbiz_jpg/gwWrVdXgFlb9ibIdAgxogiaiak7AiaVLXgViaYN1MVibV7dkxvPASkbrLzXu2Dpep2wNJia2x9CXoibX1uNvmMUiadKESaQ/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1",
        title:"不多说了，说不完..."
      },
      
    ]
  },
  lookImage(e){
    var that = this;
    var src = e.target.dataset.url; //获取data-src
    var imgList = [e.target.dataset.url]; //获取data-list
    //图片预览
    wx.previewImage({
      current: src, // 当前显示图片的http链接
      urls: imgList // 需要预览的图片http链接列表
    })
  }
})